import http from "@/api";

/**
 * @name //智能锁管理
 */

// 获取房间列表
export const getRoomList = (params = {}) => {
  return http.post(`/room/query`, params, { noLoading: true });
};

// 短时开锁
export const unlock = (params = {}) => {
  return http.post(`/room/unlock`, params, { noLoading: true });
};

// 短时开锁结果
export const unlockResult = (params = {}, noLoading = false) => {
  return http.post(`/room/unlock/query`, params, { noLoading });
};
